package com.gjh.ouygoing.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

/**
 * 订单表
 */
@TableName("t_order_info")
@ToString
public class OrderInfo  extends BaseEntity{

    private String title;//订单标题

    private String orderNo;//商户订单编号

    private Long userId;//用户id

    private Long productId;//支付产品id

    private Integer totalFee;//订单金额(分)

    private String codeUrl;//订单二维码连接

    private String orderStatus;//订单状态

    @Override
    public String toString() {
        return "OrderInfo{" +
                "title='" + title + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", userId=" + userId +
                ", productId=" + productId +
                ", totalFee=" + totalFee +
                ", codeUrl='" + codeUrl + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public OrderInfo setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public OrderInfo setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public OrderInfo setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Long getProductId() {
        return productId;
    }

    public OrderInfo setProductId(Long productId) {
        this.productId = productId;
        return this;
    }

    public Integer getTotalFee() {
        return totalFee;
    }

    public OrderInfo setTotalFee(Integer totalFee) {
        this.totalFee = totalFee;
        return this;
    }

    public String getCodeUrl() {
        return codeUrl;
    }

    public OrderInfo setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
        return this;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public OrderInfo setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
        return this;
    }
}
